﻿/*
 * ======================================================================
 *                           Modern Warfare3 Launcher
 * Copyright 2011-2012
 * Developer:Pooya parsa
 * Email:pingsft@gmail.com
 * You are ALLOWED:
 * -Read source code
 * -Use some part of source code with Full name and email of developer
 * -Release your own mod with name of develepor
 * You are NOT ALLOWD:
 * -Add cracked version of Mw3
 * -Release modified version as MW3Launcher
 * -Mirror Sourcecode
 * -Use source code without name of developer
 * Thank you for your attention
 * ======================================================================
 * */
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace MW3Launcher
{
    class Config
    {
        public Config()
        {
            try
            {
                IniParser p = new IniParser("Mw3 Launcher.ini");
                HomePageUrl = p.GetSetting("general", "HomePageUrl");
                NewsUrl = p.GetSetting("general", "NewsUrl");
                DownloadUrl = p.GetSetting("general", "DownloadUrl");
                UpdateList = p.GetSetting("general", "UpdateList");
                UpdateBaseUrl = p.GetSetting("general", "UpdateBaseUrl");
            }
            catch
            {
                System.Windows.Forms.MessageBox.Show("Unable to load settings from Mw3 Launcher.ini file");
            }
        }
        public string[] NeededFiles = { "teknomw3.dll" };
        public string HomePageUrl = "";
        public string NewsUrl = "";
        public string DownloadUrl = "";
        public string UpdateList = "";
        public string UpdateBaseUrl = "";
    }
}
